import { http } from '@/utils/http/axios';

/**
 * @description: 获取门店列表
 */
export function stationlist(params) {
    return http.request({
      url: '/device/stationlist',
      method: 'GET',
      params
    });
}

/**
 * 添加门店
 */
export function stationAdd(params){
  return http.request({
    url: '/device/stationadd',
    method: 'POST',
    params
  })
}

/**
 * 修改门店
 */
export function stationEdit(params){
  return http.request({
    url: '/device/stationedit',
    method: 'POST',
    params
  })
}

/**
 * 门店详情
 */
export function stationInfo(params){
  return http.request({
    url: '/device/stationinfo',
    method: 'GET',
    params
  })
}

/**
 * 修改门店归属代理商
 */
export function stationChange(params){
  return http.request({
    url: '/device/stationchange',
    method: 'GET',
    params
  })
}

/**
 * @description: 搜索地图列表
 */
export function getMapList(params) {
  return http.request({
    url: '/device/maplist',
    method: 'GET',
    params
  });
}

/**
 * @description: 地图
 */
export function getProvinceList(params){
  return http.request({
    url: '/device/provincelist',
    method: 'GET',
    params
  });
}

/**
 * @description:根据区域码获取地址
 */
export function getAdcodeSearch(params){
  return http.request({
    url: '/device/adcodesearch',
    method: 'GET',
    params
  });
}

/**
 * 根据坐标获取地址详情
 */
export function geocoderInfo(params){
  return http.request({
    url: '/device/geocoderinfo',
    method: 'GET',
    params
  })
}

//获取计费策略
export function billinfo(params){
  return http.request({
    url: '/device/billinfo',
    method: 'POST',
    params
  })
}

export function stationbillEdit(params){
  return http.request({
    url: '/device/billedit',
    method: 'POST',
    params
  })
}
